﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Castle.ActiveRecord;
using System.ComponentModel.DataAnnotations;

namespace ZDSoft.LMS.Domain
{
    public class Dictionary<T>:EntityBase
        where T:class
    {
        /// <summary>
        /// 名称
        /// </summary>
        [Property(Length = 20)]
        [Display(Name = "名称")]
        [Required(ErrorMessage = "不能为空！")]
        public string Name { get; set; }

        /// <summary>
        /// 数据字典的类型
        /// </summary>
        [Property]
        [Required]
        public DictionaryType Type { get; set; }
    }
}
